<extend name="Public/base"/>
<block name="body">
    <script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title">
        <h2>{$meta_title}</h2>
    </div>

    <form action="" method="post" class="form-horizontal">
        <!--  课程名称  -->
        <div class="form-item">
            <label class="item-label">课程名称</label>
            <div class="controls">
                <input type="text" class="text input-large" value="{$info.name}" readonly>
            </div>
        </div>

        <!--  视频名称  -->
        <div class="form-item">
            <label class="item-label">视频名称</label>
            <div class="controls">
                <input type="text" class="text input-large" value="{$info.video_name}" readonly>
            </div>
        </div>

        <!--  问题  -->
        <div class="form-item">
            <label class="item-label">问题</label>
            <div class="controls">
                <textarea readonly cols="50" rows="10">{$info.question}</textarea>
            </div>
        </div>

        <!--  问题附件  -->
        <notempty name="info['imgs']">
            <div class="form-item">
                <label class="item-label">问题附件</label>
                <div class="controls">
                    <volist name="info['imgs']" id="vo">
                        <img src="{$vo.path}" style="width: 200px; height: 200px; object-fit: cover; margin-right: 10px">
                    </volist>
                </div>
            </div>
        </notempty>

        <!--  答复  -->
        <div class="form-item">
            <label class="item-label">答复</label>
            <div class="controls">
                <textarea name="answer" cols="50" rows="10">{$info.answer}</textarea>
            </div>
        </div>

        <input type="hidden" value="{:I('id')}" name="id" />
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U("Manage/videoQuestionList")}');
    </script>
</block>
</html>